package com.shiliuzi.www.pojo.dto.user;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserLoginSendDto {

    @NotBlank(message = "请输入学号！")
    @NotNull(message = "请输入学号！")
    private String number;

    @NotNull(message = "请输入邮箱地址！")
    @Email(regexp = "^\\d*@qq.com$")
    private String email;
}
